import request from '../../utils/request';

export const getPage = (query) => {
    return request({
        url: '/mallGoodsDetail/getMallGoodsDetails',
        method: 'post',
        data: query
    })
}

export const add = (query) => {
    return request({
        url: '/mallGoodsDetail/add',
        method: 'post',
        data: query
    })
}

export const getMallGoodsDetailsById = (query) => {
    return request({
        url: '/mallGoodsDetail/edit/get/'+query,
        method: 'post',
        data: query
    })
}

export const edit = (query) => {
    return request({
        url: '/mallGoodsDetail/edit',
        method: 'post',
        data: query
    })
}

export const deleteMallGoodsDetail = (query) => {
    return request({
        url: '/mallGoodsDetail/delete/'+query,
        method: 'post',
        data: query
    })
}

export const getReleaseMallGoodsDetails = (query) => {
    return request({
        url: '/mallGoodsDetail/getReleaseMallGoodsDetails',
        method: 'post',
        data: query
    })
}